package com.youlai.boot.system.model.vo;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 订单Excel数据传输对象，所有字段均为字符串类型
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免用户导入有问题
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.LEFT)//表头字体样式
public class OrderExcelVO implements Serializable {
    /**
     * 采购订单
     */
    @ExcelProperty(index = 1)
    private String cgdd;

    /**
     * PO行项目
     */
    @ExcelProperty(index = 2)
    private String poxxm;

    /**
     * 销售订单
     */
    @ExcelProperty(index = 3)
    private String xsdd;

    /**
     * SO行项目
     */
    @ExcelProperty(index = 4)
    private String soxxm;

    /**
     * 物料
     */
    @ExcelProperty(index = 5)
    private String wl;

    /**
     * 描述
     */
    @ExcelProperty(index = 6)
    private String ms;

    /**
     * 数量
     */
    @ExcelProperty(index = 7)
    private String sl;

    /**
     * 单位
     */
    @ExcelProperty(index = 8)
    private String dw;

    /**
     * 交货日期
     */
    @ExcelProperty(index = 9)
    private String jhrq;

    /**
     * 图号
     */
    @ExcelProperty(index = 10)
    private String thbb;

    /**
     * 库存地
     */
    @ExcelProperty(index = 11)
    private String kcd;

    /**
     * 仓位1
     */
    @ExcelProperty(index = 12)
    private String cw1;
    /**
     * 项目文本
     */
    @ExcelProperty(index = 20)
    private String longText;

    /**
     * 特性
     */
    @ExcelProperty(index = 21)
    private String tz;
}
